﻿using System.Collections.Generic;
using SymulatorEthernetWPF.SimObjects;
using System.Windows.Media;
using SymulatorEthernetWPF.UserInterface;
using SymulatorEthernetWPF.SimObjects.Wires;
using System;

namespace SymulatorEthernetWPF.Shared
{
    public static class StaticVars
    {
        public static bool IsSettingUpWire;
        public static Wire TmpWire;
        public static double CanvasScale = 1;
        public static MainWindow MainWindow;
        public static bool IsSaveLoad;
        public static Random randomNumberGenerator = new Random();

        public static ImageSource pcISource = (ImageSource)(new ImageSourceConverter()).ConvertFromString("pack://application:,,/UserInterface/Images/pcI.png");
        public static ImageSource hubISource = (ImageSource)(new ImageSourceConverter()).ConvertFromString("pack://application:,,/UserInterface/Images/hubI.png");
        public static ImageSource switchISource = (ImageSource)(new ImageSourceConverter()).ConvertFromString("pack://application:,,/UserInterface/Images/switchI.png");

        public static ImageSource UndoActive = (ImageSource)((new ImageSourceConverter()).ConvertFromString("pack://application:,,/UserInterface/Images/UndoActive_24x24.png"));
        public static ImageSource UndoInactive = (ImageSource)((new ImageSourceConverter()).ConvertFromString("pack://application:,,/UserInterface/Images/UndoInactive_24x24.png"));
        public static ImageSource RedoActive = (ImageSource)((new ImageSourceConverter()).ConvertFromString("pack://application:,,/UserInterface/Images/RedoActive_24x24.png"));
        public static ImageSource RedoInactive = (ImageSource)((new ImageSourceConverter()).ConvertFromString("pack://application:,,/UserInterface/Images/RedoInactive_24x24.png"));
    }
}